package com.sptpc.hello.stu.modei;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Student {
    public Long id;  //编号
    public String name;//学生姓名
//    @DateTimeFormat(pattern = "yyyy/MM/dd")
    public LocalDate adminssjonDate;//学生入学时间，格式为yyyy-MM-dd
    public String major;//学生专业
}
